import { proxy } from 'valtio';
//通过proxy方法返回一个状态对象
export const todosList = proxy({
    todos: [
        { id: 1, text: 'jotai', completed: true },
        { id: 2, text: 'valtio', completed: false }
    ]
});